package com.shopping_back.pojo.dto;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class SpuSearchDTO {
    private String keyword;
    private Long   categoryId;

    /**排序字段：price / time；默认 time */
    private String sortBy = "time";
    /**asc / desc；默认 （价格升序 = asc，时间先上新 = desc） */
    private String sortOrder = "desc";

    /** 最小库存量 */
    private Integer minStock;

    /** 价格区间 */
    private BigDecimal minPrice;
    private BigDecimal maxPrice;

    /** 分页信息 */
    private Integer pageNum  = 1;
    private Integer pageSize = 20;
}
